7a1de48e56dcefa56e13891205c84adbd86da741,sonar-core/src/main/java/org/sonar/core/graph/SubGraph.java,SubGraph,copy,#Vertex#,75

Before Change



  private Vertex copy(Vertex v) {
    Vertex to = sub.addVertex(v.getId());
    ElementHelper.copyProperties(v, to);
    return to;
  }
}

After Change


  private Vertex copy(Vertex v) {
    Vertex to = sub.getVertex(v.getId());
    if (to == null) {
      to = sub.addVertex(v.getId());
      ElementHelper.copyProperties(v, to);
    }
    return to;
  }